import http from '@/utils/http'


export const getListApi = async (param) => {
  return await http.get("/api/menu/list",null);
}

//上级树
export const getParentListApi = async (param) => {
  return await http.get("/api/menu/parent",null);
}

//新增
export const addMenuApi = async (param) => {
  return await http.post("/api/menu",param)
}

//编辑
export const editMenuApi = async (param) => {
  return await http.put("/api/menu",param)
}
//删除
export const deleteMenuApi = async (param) => {
  return await http.delete("/api/menu",param)
}
